package com.yu.domain;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

/**
 * @Description: TODO
 * @Author : yu
 * Date : 4/24/2020 11:06 AM
 */
@Data
public class Role  implements GrantedAuthority{

    private Integer id;
    private String name;

    @Override
    public String getAuthority() {
        return name;
    }
}
